"use strict";
cc._RF.push(module, '1705cKfvClDKYCDqvILc4KX', 'choicepanel');
// script/choicepanel.js

'use strict';

cc.Class({
	extends: cc.Component,

	properties: {
		_aid: -1,
		_bid: -1,
		alabel: cc.Label,
		blabel: cc.Label
	},

	onLoad: function onLoad() {
		var _this = this;

		cc.director.on('choicepanel', function (e) {
			cc.log('choicepanel===e.detail=' + e.detail);
			if (e.detail == 49) {
				_this._aid = 50;
				_this._bid = 59;
				_this.alabel.string = '给他钱';
				_this.blabel.string = '让他当魔王';
			} else if (e.detail == 86) {
				_this._aid = 87;
				_this._bid = 89;
				_this.alabel.string = '就这样成为同伴';
				_this.blabel.string = '暂时不了';
			} else if (e.detail == 103) {
				_this._aid = 104;
				_this._bid = 108;
				_this.alabel.string = '放她走';
				_this.blabel.string = '抓住她';
			}
		}, this);
	},
	choiceA: function choiceA() {
		cc.log('choicepanel===choiceA=' + this._aid);

		cc.director.emit('choicebtn', this._aid);
	},
	choiceB: function choiceB() {
		cc.log('choicepanel===choiceB=' + this._bid);

		cc.director.emit('choicebtn', this._bid);
	}
}
/*
_logid --A    ==B	
50	51	60
88	89	91
105	106	110
*/
// update (dt) {},
);

cc._RF.pop();